package de.ciupka.minesweeper.controller;

import java.awt.Dimension;

import de.ciupka.minesweeper.gamecreator.Gamecreator;

public class Controller {
	private static Controller instance;
	private GUIController guiController;
	private Gamecreator gamecreator;
	
	private Controller() {}
	
	public static Controller getInstance() {
		if(instance == null) {
			instance = new Controller();
			instance.buildGamecreator();
			instance.buildGUIController();
		}
		return instance;
	}
	
	public void createProperties() {
		
	}
	
	public void updateProperties() {
		
	}
	
	public void updateFieldSize(Dimension dimension) {
		
	}
	
	public Gamecreator getGamecreator() {
		return gamecreator;
	}
	
	public GUIController getGUIController() {
		return guiController;
	}
	
	public void buildGamecreator() {
		gamecreator = new Gamecreator();
	}
	
	public void buildGUIController() {
		guiController = new GUIController();
	}
	
	public void setFieldProperties(Dimension d, int mines) {
		
	}
	
	public static void main(String[] args) {
		getInstance();
	}
}
